ZzDC Platform

------------------
Linux

freepascal debian installation komplett
   ubuntu 
     http://www.vmware.com/appliances/directory/1037
       user user, no root password
     http://www.vmware.com/appliances/directory/1068
     http://jars.de/linux/ubuntu-710-vmware-image-download-english     
       jars jars
       
problem att lnka
  hitta libar
    ldconfig -v | grep libpthread
  lnka libar
    sudo ln -s libX11.so.6 libX11.so

ide
  "Generate Linux executable"
  BuildBinary('player_linux.bin',OutFile);
  procedure TEditorForm.BuildRelease(Kind : TBuildBinaryKind);
    bbNormalLinux

upx
  upx packar upp filen i temppath
  d blir paramstr(0)=''
    execpathstr[0]:=#0;
    i:=Fpreadlink('/proc/self/exe',@execpathstr[1],high(execpathstr));
    { it must also be an absolute filename, linux 2.0 points to a memory
      location so this will skip that }
    if (i>0) and (execpathstr[1]='/') then
       execpathstr[0]:=char(i);
  stllt frgan p upx-forum
    http://sourceforge.net/forum/message.php?msg_id=4590017
    ok, man mste upxa player-filen frst och sedan appenda data

ELF file format
  replace resources?
  http://en.wikipedia.org/wiki/Executable_and_Linkable_Format
  http://www.acm.uiuc.edu/sigmil/RevEng/ch08.html
  HTE elf viewer tool http://hte.sourceforge.net/
  java elf
    http://www.brianweb.net/misc/mips-freetype.tar.bz2 
  'You'll notice that in linux elf binaries there are no reserved areas
    for resources with set structures ect...., and no api to retrieve
    them.'
  http://channel9.msdn.com/ShowPost.aspx?PostID=145204
  
issues linux:
  execute-flaggan mste sls p nr man kopierar filer till linux
    chmod 755 CleanseCube
  upx fungerar ej
  fonter inbyggda fungerar ej
  cleansecube krashar
    spawnmodel cubemodel lser problemet
    rendermesh cubemesh
    subdivded meshcube fungerar ej, troligtvis minnesfel

bygg:
  fpc -XXis -O2 -dZZDC_SDL -dMINIMAL -FU./Build/obj/ -B -Mdelphi ZzDC.dpr
  kopiera ZzDC till player_linux.bin
  (kr upx p player_linux.bin)
  

---------------------------  
Mac osx
   http://www.pascalgamedevelopment.com/viewtopic.php?t=4658&highlight=&sid=54565867eeb487de2f1066c9a1fb34ad
   http://www.aegisryan.com/2005/09/11/simplest-installation-of-mac-osx86-in-vmware/
   http://www.paulooi.com/2005/10/15/vmware-network-mac-osx-x86/
     http://video.paulooi.com/Maxxuss-AMDPCNET-v1.0_1043.zip
   sdl
     http://wiki.freepascal.org/index.php/FPC_and_SDL

filesharing
  systempreferences/sharing/windows sharing

sdlmain
  sdl p osx mste ha en egen main-funktion
  drfr definierar man om freepascal main med -XMSDL_main
  sedan mste man lnka mot SDLMain.o
    bygg sdlmain.m i xcode (utg frn template freepascal 3d jedi sdl)
    kommentera ut "assert" i sdlmain.m frst
 
issues osx:
  binr r vldigt stor (debug lge p sdlmain.o?)
  inget ljud
  cleansecube krashar
  inga fonter
  upx gr ej
 
bygg:
  fpc -XXis -O2 -dZZDC_SDL -dMINIMAL -FU./Build/obj -Mdelphi -k-L/Library/Frameworks/SDL.framework -k"-L/Library/Frameworks/JEDI-SDL.framework/SDL -framework SDL -framework OpenGL -framework Cocoa" -XMSDL_main ZzDC.dpr